<?php include PATH_TPL."/admin/tpl.header.phtml"?>
<div class="main-container inner">
    <div class="main-content">
        <div class="container-fluid">
            <div class="row bt">
                <div class="col-lg-12 bg">
                    <ol class="breadcrumb">
                        <li class="active">
                        <i class="fa  fa-fw fa-reorder"></i>问题管理
                        </li>
                    </ol>
                </div>
            </div>
            <div class="row">
                <div class="col-md-6 col-md-offset-6">
                    <form method="post" action="/admin_user">
                        <div class="form-group input-group">
                            <input type="text" placeholder="搜索用户名或者手机号关键字" name="key" class="form-control">
                        <span class="input-group-btn">
                          <button type="button" class="btn btn-default" id="search"><i class="fa fa-search"></i></button>
                        </span>
                        </div>
                    </form>
                </div>
            </div>

            <div class="panel-body text-center">
                <table class="table table-hover" id="sample-table-1">
                    <thead>
                        <tr>
                            <td>编号</td>
                            <td>姓名</td>
                            <td>手机号</td>
                            <td>身份类型</td>
                            <td>问题内容</td>
                            <td>提问时间</td>
                            <td>处理</td>
                        </tr>
                    </thead>
                    <?foreach($tDatas as $tRow){?>
                    <tr>
                        <td><?=$tRow['id']?></td>
                        <td><?=empty($tRow['name'])?'无':$tRow['name']?></td>
                        <td><?=empty($tRow['phone'])?'无':$tRow['phone']?></td>
                        <td><?=empty($tRow['identity'])?'无':(($tRow['identity']=='1')?'在校医学生':($tRow['identity']=='2')?'在职医生':'其他')?></td>
                        <td><?=$tRow['content']?></td>
                        <td><?=date('Y-m-d H:i:s',$tRow['created'])?></td>
                        <td><a role="menuitem" class="btn btn-orange btn-xs tooltips demo_4" tabindex="-1" href="#" data-original-title="删除" data-placement="top" onclick="cg_confirm_del('/admin_ask/del?id=<?=$tRow['id']?>','/admin_ask')"><i class="fa fa-times"></i></a></td>
                    </tr>
                    <?}?>
                </table>
                <?=$tShow?>
            </div>
        </div>
        <div class="subviews">
            <div class="subviews-container"></div>
        </div>
    </div>
    <!-- end: PAGE -->
</div>
<!-- end: MAIN CONTAINER -->

<script>
/*
$('#search').click(function(){
    $('form').submit();
});
 */
</script>
<?php include PATH_TPL."/admin/tpl.footer.phtml"?>
